package service;

import java.util.List;

import dao.OrderItemDao;
import entity.Order;
import entity.OrderItem;

public class OrderItemService {

	OrderItemDao orderItemDao = new OrderItemDao();
	public List<OrderItem> getO_ItemById(int o_id) {
		return orderItemDao.getO_ItemById(o_id);
	}
	
	//添加订单项和订单信息
	public void addOrderItem(List<OrderItem> itemList, Order order) {
		orderItemDao.addOrderItem(itemList, order);
	}
}
